package com.example.springsecurity04.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yangdc
 * @date 2022/4/19
 */
@RestController
public class HelloController {
    @RequestMapping("/hello")
    ResponseEntity<String> hello() {
        return ResponseEntity.ok("hello");
    }

    @RequestMapping("/admin/hello")
    ResponseEntity<String> admin() {
        return ResponseEntity.ok("admin hello");
    }

    @RequestMapping("/user/hello")
    ResponseEntity<String> user() {
        return ResponseEntity.ok("user hello");
    }
}
